package main

import "fmt"

type Human interface {
	Write() string
}

type Man struct {
	Content string `json:"content"`
}

func (m Man) Write() string {
	return m.Content
}

type Woman struct {
	Content string `json:"content"`
}

func (w Woman) Write() string {
	return w.Content
}

func main() {
	var h Human
	man := Man{
		Content: "111",
	}
	h = man

	woman := Woman{Content: "22"}
	h = woman
	fmt.Println(h.Write())
}
